<?php
namespace app\common\model;

class Notice extends Base
{
    public function getShopIdAttr($val)
    {
        if($val == 0) return '';
        return Shop::getVal(['id' => $val], 'name');
    }
}